package com.zy.openchat.core.model.contact;

import com.chad.library.adapter.base.entity.JSectionEntity;

public class Section extends JSectionEntity {
    private boolean isHeader;
    private Object obj;
    private boolean isChecked = false;

    public Section(boolean isHeader, Object obj) {
        this.isHeader = isHeader;
        this.obj = obj;
    }

    public Section(boolean isHeader, Object obj, boolean isChecked) {
        this.isHeader = isHeader;
        this.obj = obj;
        this.isChecked = isChecked;
    }

    public Object getObject() {
        return obj;
    }

    @Override
    public boolean isHeader() {
        return isHeader;
    }


    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }
}
